﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Vinetlife.Master" AutoEventWireup="true" EnableViewState="false"
    CodeBehind="Login.aspx.cs" Inherits="VINETLIFE.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        function doClick(buttonName, e) {
            var key;
            if (window.event)
                key = window.event.keyCode;     //IE
            else
                key = e.which;     //firefox
            if (key == 13) {
                var btn = document.getElementById(buttonName);
                if (btn != null) {
                    btn.click();
                    event.keyCode = 0
                }
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main-container">
        <div class="main-container-inner">
            <div id="breadcrumb">
                <ul class="crumbs">
                    <li class="first"><a href="/" style="z-index: 9;" title="Trang chủ"><span></span>Trang chủ</a></li>
                    <li class="first"><a href="/dang-nhap" style="z-index: 8;" title="Đăng nhập"><span></span>Đăng nhập</a></li>
                </ul>
            </div>
            <div class="t-content-wrap">
                <div class="divLogin">
                    <asp:Panel ID="pnlLogin" runat="server">
                        <fieldset class="fieldset">
                            <legend>Đăng nhập</legend>
                            <table>
                                <tr>
                                    <td>Tên đăng nhập:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtUserName" CssClass="txtLogin" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Mật khẩu:
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPass" CssClass="txtLogin" TextMode="Password" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnSignUp" CssClass="btnLogin" runat="server" Text="Đăng ký" OnClick="btnSignUp_Click" />
                                        <asp:Button ID="btnLogin" CssClass="btnLogin" runat="server" Text="Đăng nhập" OnClick="btnLogin_Click" />
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnQuenMk" runat="server" Text="Quên mật khẩu?" OnClick="btnQuenMK_Click" CssClass="buttonchange" />
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </asp:Panel>
                    <asp:Panel ID="pnEmail" runat="server">
                        <fieldset class="fieldset">
                            <legend>Quên mật khẩu</legend>
                            <table>
                                <tr>
                                    <td>Email</td>
                                    <td>
                                        <asp:TextBox ID="txtEmail" runat="server" placeholder="Email *" Width="150px" CssClass="txtLogin"></asp:TextBox>
                                        <asp:RequiredFieldValidator runat="server" ID="rads" ControlToValidate="txtEmail" ForeColor="Red" ErrorMessage="*"> </asp:RequiredFieldValidator>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                                            ErrorMessage="Sai định dạng Email!!!" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        <p style="color: #ff0000; font-size: 11px">
                                            (Nhập địa chỉ Email đã đăng ký với Website để được nhận lại mật khẩu mới)
                                        </p>
                                    </td>
                                </tr>
                                <tr>
                                    <td></td>
                                    <td>
                                        <asp:Button ID="btnMK" runat="server" CssClass="btnLogin" OnClick="btnGui_Click"
                                            Text="Gửi" Width="122px" />
                                    </td>
                                </tr>
                            </table>
                        </fieldset>
                    </asp:Panel>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
